FUNCTION

byte_array.from_base64

static function from_base64(value: text): byte_array

Create a byte array from a base-64 string.

Valid base-64 strings may include the characters a-z, A-Z, 0-9, + and / as significant characters, and '=' as padding.

Parameters

  • value — the base-64 string

Throws

  • exception — if value contains invalid characters

Since

0.9.0

© 2026 Chromia